//
//  Cup.m
//  OC2_实例变量可见度和方法
//
//  Created by 徐国庆 on 14-10-31.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Cup.h"

@implementation Cup

// 声明设置器的方法
- (void)setColor:(NSString *)color andMaterialScience:(NSString *)materialScience andCapacity:(float)capacity andPrice:(float)price
{
    _color = color;
    _materialScience = materialScience;
    _capacity = capacity;
    _price = price;
}
// 声明访问器的方法
- (NSString *)color
{
    return _color;
}
- (NSString *)materialScience
{
    return _materialScience;
}
- (float)capacity
{
    return _capacity;
}
- (float)price
{
    return _price;
}



@end
